﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="Dynamic.Testing.Web._Default" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title>Default</title>

    <script type="text/javascript" src="Javascript/jQuery/jquery-1.3.2.min.js"></script>

    <script type='text/javascript' src='Javascript/jQuery/jquery.bgiframe.min.js'></script>

    <script type='text/javascript' src='Javascript/jQuery/jquery.ajaxQueue.js'></script>

    <script type='text/javascript' src='Javascript/jQuery/thickbox-compressed.js'></script>

    <script type='text/javascript' src='Javascript/jQuery/jquery.autocomplete.min.js'></script>

    <script type='text/javascript' src='Javascript/jQuery/localdata.js'></script>

    <link rel="stylesheet" type="text/css" href="Javascript/jQuery/jquery.autocomplete.css" />
    <link rel="stylesheet" type="text/css" href="Javascript/jQuery/thickbox.css" />

    <script type="text/javascript">
        $().ready(function() {
            $.ajax({
                type: "get",
                url: "DoPost.aspx",
                timeout: 5000,
                dataType: "json",
                error: function() {
                    alert('Error loading');
                },
                success: function(json) {
                    $("#Text1").focus().autocomplete(json, {
                        width: 260,
                        selectFirst: false
                    });
                }
            });

        });
    </script>

</head>
<body>
    <form id="form1" runat="server">
    <div>
        <input id="Text1" type="text" />
        <input id="Text2" type="text" />
    </div>
    </form>
</body>
</html>
